<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Admin/VideoComment/index')}">视频评论列表</a></li>
		</ul>
		<form class="well form-search" id="query_form" method="post" action="{:U('Admin/Video/index')}">
			视频名称： 
			<input type="text" name="videoName" style="width: 120px;" value="{$formParam.videoName}" placeholder="视频名称...">
			评论内容： 
			<input type="text" name="content" style="width: 150px;" value="{$formParam.content}" placeholder="评论内容...">
			评论时间：
			<input type="text" name="startTime" class="js-datetime" value="{$formParam.startTime|default=''}" style="width: 120px;" autocomplete="off"> -
			<input type="text" class="js-datetime" name="endTime" value="{$formParam.endTime}" style="width: 120px;" autocomplete="off">
			
			<input type="button" name="query_form_btn" id="queryBtn" data-action="{:U('Admin/VideoComment/index')}" class="btn btn-primary" value="查询" />
		</form>
		<form class="js-ajax-form" action="" method="post">
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>视频名称</th>
					<th>评论内容</th>
					<th>评论者昵称</th>
					<th>评论者头像</th>
					<th>点赞数</th>
					<th>评论时间</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				
				<foreach name="data" item="vo">
				<tr>
					<td>{$vo.videoName}</td>
					<td>{$vo.content}</td>
					<td>{$vo.nickName}</td>
					<td><if condition="$vo.avatar neq null"><a href="{$vo.avatar}" target="_blank"><img src="{$vo.avatar}" style="width:45px;hight:45px;"/></a></if></td>
					<td>{$vo.likeCount}</td>
					<td>{$vo['createTime']/1000|date='Y-m-d H:i:s', ###}</td>
					<td>
						<a href='{:U("Admin/VideoComment/delete", array("commentId"=>number_format($vo["commentId"], 0, "", "")))}' class="js-ajax-dialog-btn">删除</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		</form>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
	$(document).ready(function(){
		$('input[name="query_form_btn"]').click(function(){
			 $('#query_form').attr('action', $(this).attr('data-action'));
			 $('#query_form').submit();
		});
		$('#typeId').val({$formParam.typeId});
	});
	</script>
</body>
</html>